package com.zw.api;/*
 *@program:java-cloud-prevalence
 *@author:zw
 *@Time: 2022/12/10
 *@description:
 */

import com.zw.object.system.SysUser;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(value = "user-service")
public interface UserFeignClient {
    @GetMapping("/admin/system/sysUser/user")
    SysUser getUserByUsername(@RequestParam("username") String username);
}
